import request from '@/utils/request'
const settings = require('@/settings.js')
let platform = 'drp'
if (process.env.NODE_ENV === 'glprd') {
  platform = 'gl'
} else {
  platform = settings.platform
}

export function registerLoadTaxfilingcategory() {
  return request({
    url: '/registerLoadTaxfilingcategory',
    method: 'post'
  })
}

export function registerLoadArea() {
  return request({
    url: '/registerLoadArea',
    method: 'post'
  })
}

export function register(data) {
  return request({
    url: '/registerSave',
    method: 'post',
    data
  })
}

export function forgotSentVerifyCode(data) {
  return request({
    url: '/forgotSentVerifyCode',
    method: 'post',
    data
  })
}

export function forgotPSWSave(data) {
  return request({
    url: '/forgotPSWSave',
    method: 'post',
    data
  })
}

export function getVerifyCode() {
  return '/' + platform + '/loginVerifyCode'
}

export function getVerifyCode1() {
  return '/' + platform + '/registerVerifyCode'
}

export function forgotOrgCodeVerifyCode() {
  return '/' + platform + '/forgotOrgCodeVerifyCode'
}

export function forgotOrgCode(data) {
  return request({
    url: '/forgotOrgCode',
    method: 'post',
    data
  })
}

export function checkVerify9(data) {
  return request({
    url: '/checkVerify9',
    method: 'post',
    data
  })
}

export function registerSmsCode(data) {
  return request({
    url: '/registerSmsCode',
    method: 'post',
    data
  })
}

export function getRegisterStatus() {
  return request({
    url: '/getRegisterStatus',
    method: 'post'
  })
}

